package com.example.demo.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Admin;
import com.example.demo.entity.VO.Announcement;
import com.example.demo.entity.param.AnnouncementParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    Admin selectUserByLogin(Admin admin);
    Long selectUserByregister(Admin admin);
    Admin selectUserByUsername(String username);


    List<Announcement> getAnnouncementList(AnnouncementParam announcementParam);

    void editAnnouncementList(Announcement announcement);

    void addAnnouncementList(Announcement announcement);
}
